﻿namespace IOP.Protocols.MQTT
{
    /// <summary>
    /// 连接返回类型
    /// </summary>
    public enum ReturnCodeType
    {
        /// <summary>
        /// 已接受
        /// </summary>
        Accept = 0x00,
        /// <summary>
        /// 协议错误
        /// </summary>
        ProtocolError = 0x01,
        /// <summary>
        /// 客户端标识错误
        /// </summary>
        ClientIdError = 0x02,
        /// <summary>
        /// 服务端错误
        /// </summary>
        ServerError = 0x03,
        /// <summary>
        /// 用户名或密码错误
        /// </summary>
        UserError = 0x04,
        /// <summary>
        /// 未授权
        /// </summary>
        Authorize = 0x05
    }
}
